package com.itheima.homework.Three;

import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Demo {
    public static void main(String[] args) {


        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        char[] c = s.toCharArray();

        int sum=0;

        String[] a = s.split(" ");

//        for (int i = 0; i < a.length; i++) {
//            System.out.print(a[i]);
//        }
        for (int i = 0; i < a.length; i++) {
            int n = Integer.parseInt(a[i]);
            sum += n;
        }
        System.out.println(sum);

        BigDecimal b1 = BigDecimal.valueOf(sum);
        BigDecimal b2 = BigDecimal.valueOf(a.length);
        BigDecimal b = b1.divide(b2,2, RoundingMode.HALF_UP);
        System.out.println(b);
    }
}
